import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/user',
  component: Layout,
  name: 'user',
  meta: {
    title: '碧选管理',
    icon: 'icon'
  },
  children: [{
      path: 'member/list',
      component: _import('user/member/list'),
      name: 'member',
      meta: {
        title: '会员列表',
        buttons: {
          operate: {
            label: '启用/禁用',
            enabled: true
          },
          level: {
            label: '会员等级',
            enabled: true
          },
          upLevel: {
            label: '升级董事',
            enabled: true
          },
          detail: {
            label: '会员详情',
            enabled: true
          },
          record: {
            label: '禁用记录',
            enabled: true
          },
          weChat: {
            label: '微信解绑',
            enabled: true
          }
        }
      }
    },
    {
      path: 'member/disableRecord',
      component: _import('user/member/disableRecord'),
      name: 'memberRecord',
      meta: {
        title: '禁用记录'
      },
      hidden: true
    },
    {
      path: 'member/disableRecord',
      component: _import('user/member/disableRecord'),
      name: 'disableRecord',
      meta: {
        title: '禁用记录',
        roles: [1, 9]
      },
      hidden: true
    },
    {
      path: 'member/detail/:id',
      component: _import('user/member/detail'),
      name: 'memberDetail',
      meta: {
        title: '会员详情',
        noCache: true,
        index: '/user/member/list'
      },
      hidden: true,
      props: true
    }, {
      path: 'bankcard/list',
      component: _import('user/bankcard/list/index'),
      name: 'bankcardList',
      meta: {
        title: '用户银行卡列表',
        buttons: {
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
      path: 'packetRainRecored',
      component: _import('user/packetRainRecored/index'),
      name: 'packetRecord',
      meta: {
        title: '现金红包记录',
        buttons: {
          export: {
            label: '导出',
            enabled: true
          }
        }
      }
    },
    {
      path: 'member/realname',
      component: _import('user/member/realname'),
      name: 'realname',
      meta: {
        title: '实名认证',
        buttons: {
          // modifyPhone: { label: '修改手机号', enabled: true },
          // modifyCard: { label: '修改银行卡号', enabled: true },
          // sync: { label: '同步', enabled: true },
          logOff: {
            label: '注销',
            enabled: true
          }
          // gmsync: {label: '公猫同步', enabled: true}
        }
      }
    },
    /*,
      {
          path: 'certification/list',
          component: _import('user/certification/list/index'),
          name: 'certificationList',
          meta: {title: '实名认证列表'},
      }*/
    {
      path: 'vipConfigList',
      component: _import('vipConfig/list'),
      name: 'vipConfigList',
      meta: {
        title: '会员配置列表',
        buttons: {
          // goods: { label: '商品管理', enabled: true },
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
        path: 'privilege/configList',
        component: _import('privilegeConfig/privilege'),
        name: 'privilegeConfigList',
        meta: {
          title: '特权管理',
          buttons: {
            privilegeManage: { label: '特权管理', enabled: true },
            edit: { label: '编辑', enabled: true }
          }
        },
    },
    {
        path: 'RewardConfig',
        component: _import('recommendReward/rewardConfig'),
        name: 'recommendRewardConfig',
        meta: {
          title: '推荐奖励配置'
        },
    },
    {
        path: 'rebateConfig',
        component: _import('teamRebate/rebateConfig'),
        name: 'teamRebateConfig',
        meta: {
          title: '团队返佣设置',
          buttons: {
          }
        },
    },
    // {
    //   path: 'member/upgrade',
    //   component: _import('user/member/upgrade'),
    //   name: 'memberUpgrade',
    //   meta: {
    //     title: '升级半价董事'
    //   },
    // },
    // {
    //   path: 'member/upgradeRegion',
    //   component: _import('user/member/upgradeRegion'),
    //   name: 'memberUpgradeRegion',
    //   meta: {
    //     title: '升级大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeTotalRegion',
    //   component: _import('user/member/upgradeTotalRegion'),
    //   name: 'upgradeTotalRegion',
    //   meta: {
    //     title: '升级总代大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeOfficalRegion',
    //   component: _import('user/member/upgradeOfficalRegion'),
    //   name: 'upgradeOfficalRegion',
    //   meta: {
    //     title: '升级官方大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeBXRegion',
    //   component: _import('user/member/upgradeBXRegion'),
    //   name: 'upgradeBXRegion',
    //   meta: {
    //     title: '升级碧选大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeGDRegion',
    //   component: _import('user/member/upgradeGDRegion'),
    //   name: 'upgradeGDRegion',
    //   meta: {
    //     title: '升级高董大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeNewRegion',
    //   component: _import('user/member/upgradeNewRegion'),
    //   name: 'upgradeNewRegion',
    //   meta: {
    //     title: '升级新大区'
    //   },
    // },
    // {
    //   path: 'member/upgradeDirectors',
    //   component: _import('user/member/upgradeDirectors'),
    //   name: 'memberUpgradeDirectors',
    //   meta: {
    //     title: '升级董事'
    //   },
    // },
    // {
    //   path: 'member/upgradeZHODirectors',
    //   component: _import('user/member/upgradeZHODirectors'),
    //   name: 'memberUpgradeZHODirectors',
    //   meta: {
    //     title: '升级ZHO董事'
    //   },
    // },
    // {
    //   path: 'member/degrade',
    //   component: _import('user/member/degrade'),
    //   name: 'memberDegrade',
    //   meta: {
    //     title: '降级半价董事'
    //   },
    // },
    // {
    //   path: 'partner/list',
    //   component: _import('user/partner/list'),
    //   name: 'partnerList',
    //   meta: {
    //     title: '城市合伙人列表',
    //     buttons: {
    //       region: {
    //         label: '查看详情',
    //         enabled: true
    //       }
    //     }
    //   },
    // },
    // {
    //   path: 'partner/region/:id',
    //   component: _import('user/partner/region'),
    //   name: 'partnerListRegion',
    //   meta: {
    //     title: '城市合伙人已使用大区列表',
    //     noCache: true,
    //     index: '/user/partner/list'
    //   },
    //   hidden: true,
    //   props: true
    // },
    // {
    //   path: 'member/upgradeRecord',
    //   component: _import('user/member/upgradeRecord'),
    //   name: 'upgradeRecord',
    //   meta: {
    //     title: '会员升级记录查询'
    //   },
    // },
    // {
    //   path: 'member/LVResize',
    //   component: _import('user/member/LVResize'),
    //   name: 'LVResize',
    //   meta: {
    //     title: '用户LV调整'
    //   }
    // },
    // {
    //   path: 'member/giftbagResize',
    //   component: _import('user/member/giftbagResize'),
    //   name: 'giftbagResize',
    //   meta: {
    //     title: '用户礼包数调整'
    //   }
    // },
  ]
}
